package com.zerowidth.moc.web.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class URLUtils {

    public static String decode(String source) {
        if (source == null) {
            return null;
        }
        try {
            return URLDecoder.decode(source, "utf-8");
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }

}
